import request from '@/utils/request'

// 列表
export const getList = (params) => {
  return request({
    url: '/steel-arch/client/prod/task/list',
    params:params,
    method: 'get'
  })
}

// 新增
export const add = (params) => {
  return request({
    url: '/steel-arch/client/prod/task/save',
    data:params,
    method: 'post'
  })
}

// 编辑
export const edit = (params) => {
  return request({
    url: '/steel-arch/client/prod/task/update',
    data:params,
    method: 'post'
  })
}

// 任务量调整
export const updateTaskQuantity = (params) => {
  return request({
    url: '/steel-arch/client/prod/task/updateTaskQuantity',
    data:params,
    method: 'post'
  })
}

// 删除
export const deleteById = (params) => {
  return request({
    url: '/steel-arch/client/prod/task/list',
    params:params,
    method: 'get'
  })
}


// 日志
export const getRecord = (params) => {
  return request({
    url: '/steel-arch/client/prod/task/queryTaskChangeLog',
    params:params,
    method: 'get'
  })
}

//产品类型
export const getTypeList = (params) => {
  return request({
    url: '/steel-arch/client/prod/list',
    params:params,
    method: 'get'
  })
}
